package com.common;

import java.util.Date;



public class MyThread extends Thread{
			  
    @SuppressWarnings("deprecation")  
    @Override  
    public void run() {  
        System.out.println("咫尺天涯的第一个线程(Thread)启动了。。。");  
        while(true){  
            System.out.println("系统默认的线程名字: "+ this.getName()+",自定义线程名字: "  + Thread.currentThread().getName() +",当前秒: " + new Date().getSeconds());  
            try {  
                Thread.sleep(1000);  
            } catch (InterruptedException e) {  
                e.printStackTrace();  
            }  
        }  
    }   
	
}
